package net.huashitong.scheduling.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

import net.huashitong.Indicators.filter.IndicatorBreakdownFilter;
import net.huashitong.scheduling.entity.FinanceRevenue;
@Repository
public class FinanceRevenueDao extends StringDao<FinanceRevenue> {
      
	  public List<FinanceRevenue> queryByindustryName(IndicatorBreakdownFilter filter){
		  GenericQuery query = createQuery("obj");
		  query.append(" and obj.industryName = :industryName").setParam("industryName", filter.getIndustryName());
		  return query.listResult();
	  }
	  public List<FinanceRevenue> queryByDate(String currentMonth){
		  GenericQuery query = createQuery("obj");
		  query.append(" and obj.currentMonth = :currentMonth").setParam("currentMonth", currentMonth);
		  return query.listResult();
	  }
}
